package com.hundsun.cprs.yyt.gateway.enums;

/**
 * @author liwp
 * Created on 2018/9/15
 */
public enum EnumFundBankNo {
    HXPAY("0043", "环迅快捷"),
    ALIPAY("0038", "支付宝"),
    OFLBHK("oflbhk", "香港银行"),//线下银行
    SQPAY("0047","双乾支付"),
    CLEARING("0032","清算中心"),
    MOCK("9999", "模拟银行");

    private String code;
    private String desc;

    private EnumFundBankNo(String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static EnumFundBankNo index(String code){
        for (EnumFundBankNo et : EnumFundBankNo.values()) {
            if(et.getCode().equals(code))
                return et;
        }
        return null;
    }
}
